package com.zyz.I_多线程.线程安全问题.同步代码块;


/**
 * @author: vick
 * @Date: 2025/3/22
 * @Description:
 * @version: 1.0
 */
public class BuyTicketTest {
    public static void main(String[] args) {
        BuyTicket buyTicket = new BuyTicket();
        new Thread(buyTicket, "牛逼的你").start();
        new Thread(buyTicket, "苦逼的我").start();
        new Thread(buyTicket, "黄牛").start();
    }
}
